<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" href="css/home.css">
		<link rel="stylesheet" href="css/base.css">
		<link rel="stylesheet" type="text/css" href="css/paging.css">
		<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
		<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="js/index.js"></script>
		<script type="text/javascript" src="js/media.js"></script>
		<script type="text/javascript" src="js/page/query.js"></script>
		<script type="text/javascript" src="js/page/paging.js"></script>
		<script type="text/javascript" src="js/personInfro.js"></script>
		<title>全部舆情</title>
	</head>

	<body>
		<div class="wholePublic-box">
			<div class="wholePublic-header clearfix">
				<div class="wholePublic-logo fl">
					<a href="index-logged.html"><img src="images/logo-2.png" /></a>
				</div>
				<div class="wholePublic-header-list fl">
					<ul class="clearfix">
						<li class="wholePublic-border" onclick="javascript:window.location='wholePublic-company.html'">全部舆情</li>
						<li onclick="javascript:window.location='my-custom.html'">舆情定制</li>
						<li onclick="javascript:window.location='analysis.html'">分析报告</li>
						<li onclick="javascript:window.location='thinkTank.html'">智库</li>
						<li onclick="javascript:window.location='contactUs.html'">联系我们</li>
					</ul>
				</div>
				<div class="wholePublic-header-right fr">
					<ul class="clearfix">
						<li id="line"><img src="images/line-2.png" /></li>
						<li onclick="javascript:window.location='my-custom.html'">我的定制</li>
						<li id="exit"><img src="images/exit-2.png" /></li>
						<li class="setting-icon">
							<a href="company-setting.html"><img src="images/setting-icon.png" /></a>
						</li>
					</ul>
				</div>
			</div>
			<div class="grcolor-box"></div>
			<div class="wholePublic-mainBody clearfix">

				<div class="wholePublic-leftContent wholePublic-part1 fl" id="col1">
					<ul>
						<li onclick="javascript:window.location='wholePublic-company.html'" class="wholePublic-selected"><img src="images/company-icon-selected.png" /><span>企业舆情</span></li>
						<li onclick="javascript:window.location='wholePublic-product.html'"><img src="images/product-icon.png" /><span>产品舆情</span></li>
						<li onclick="javascript:window.location='wholePublic-hot.html'"><img src="images/hot-icon.png" /><span>热点舆情</span></li>
						<li onclick="javascript:window.location='wholePublic-collection.html'"><img src="images/collection-icon.png" /><span>舆情收藏</span></li>
					</ul>
				</div>
				<div class="wholePublic-rightContent fl">
					<img  class="loading" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1528886666647&di=d30459efa40ab6bfd7059356f59720c1&imgtype=0&src=http%3A%2F%2Fimg.mp.itc.cn%2Fupload%2F20161007%2Fb6a4693671ea41dbbe48a546411eab21.jpg" />
					<!--企业舆情开始-->

					<div class="clearfix wholePublic-item">
						<div class="wholePublic-infro fl">

							<!--中间一条大数据-->

							<!--中间两条大数据-->
							<!--<div class="wholePublic-middle-item">
								<a href="productDetail.html">
									<div class="clearfix wholePublic-content">
										<div class="wholePublic-infro-left fl">
											<img src="images/companyDetailLogo.png" />
										</div>
										<div class="wholePublic-infro-right fl">
											<div class="company-title">企雷达科技有限公司</div>
											<div class="product clearfix">
												<ul class="fl">
													<li>产品:</li>
													<li>小达舆情平台</li>
													<li>支付优宝</li>
													<li>大买app</li>
												</ul>
												<div class="more fr">更多</div>
											</div>
											<div class="clearfix company-txt">
												<ul class="company-keyword fl">
													<li>关键词:</li>
													<li>环境</li>
													<li>员工友善</li>
													<li>创业</li>
												</ul>
												<div class="fl company-article"><span>相关文章：</span><span>54485</span></div>
												<div class="fr hot">
													<!--<div class="fl header-hot-txt grcolor">热度指数</div>-->
													<!--<div class="hot-progress fl">
														<div class="progress-val" id="bar_width">5642</div>
														<div class="progress-bar">
															<span class="progress-in" id="bar"></span>
														</div>
													</div>
												</div>
											</div>
											<div class="hide-1">企雷达科技有限公司是依附于橙美文化传播有限公司旗下的一个研发公司专业主营征服者，先知，征服眼汽车电子狗，征服者，先知，E路航，优路特，行天下，测速导航仪华南 一级高质量的产品，征服者电子狗。企雷达科技有限公司是依附于橙美文化传播有限公司旗下的一个研发公司专业主营征服者，先知，征服眼汽车电子狗，征服者，先知，E路航 优路特，行天下，测速导航仪华南一级高质量的产品，征服者电子狗。
											</div>
										</div>
									</div>
								</a>-->
								<!--一条中间数据-->
								<!--<div class="item">
									<div class="clearfix forum-header">
										<div class="fl positive">正</div>
										<p class="fl item-content2">
											<a href="#"><span class="item-content2-title">企雷达</span>产品正在试产试销中</a>
											<span class="item-content2-source">东方财富网</span>
										</p>
										<div class="forum_time fr grcolor">3018-03-22</div>
									</div>
									<p class="hide-3">国睿科技和四创电子是中国电子科技集团有限公司下面两家非常典型的军民融合上市公司，由于两者都是雷达领域“国家队”标的，常常被市场拿来进行比较。颇具14所的龙头风范与大哥的地位，资产注入预</p>
								</div>-->

								<!--两条中间数据-->

								<!--<div class="item">
									<div class="clearfix forum-header">
										<div class="fl positive">正</div>
										<p class="fl item-content2">
											<a href="#"><span class="item-content2-title">企雷达</span>产品正在试产试销中</a>
											<span class="item-content2-source">东方财富网</span>
										</p>
										<div class="forum_time fr grcolor">3018-03-22</div>
									</div>
									<p class="hide-3">国睿科技和四创电子是中国电子科技集团有限公司下面两家非常典型的军民融合上市公司，由于两者都是雷达领域“国家队”标的，常常被市场拿来进行比较。颇具14所的龙头风范与大哥的地位，资产注入预</p>
								</div>
								<div class="wholePublic-bottomline">

								</div>

							</div>-->

						</div>

						<div class="fl wholePublic-right">
							<!--一条数据-->

							<!--<div class="wholePublic-right-item clearfix">
								<div class="fl wholePublic-right-img fl">
									<img src="images/prodectHeader.png" class="img1" />
									<img src="images/hot.png" class="hot-img" />
								</div>
								<div class="fl wholePublic-right-txt fr">
									<div class="wholePublic-title">企雷达科技股份有限公司</div>
									<div class="item-txt-content hide-2">企雷达科技有限公司是依附于橙美文化传播有限公司旗下的一个研发公司专业主营征服者先知征服眼汽车电子狗主营征服者先知征服眼汽车电子狗</div>
								</div>
							</div>-->

							<!--两条数据-->
							<!--<div class="wholePublic-right-item clearfix">
								<div class="fl wholePublic-right-img">
									<img src="images/prodectHeader.png" class="img1" />
									<img src="images/hot.png" class="hot-img" />
								</div>
								<div class="fr wholePublic-right-txt">
									<div class="wholePublic-title">企雷达科技股份有限公司</div>
									<div class="item-txt-content hide-2">企雷达科技有限公司是依附于橙美文化传播有限公司旗下的一个研发公司专业主营征服者先知征服眼汽车电子狗主营征服者先知征服眼汽车电子狗</div>
								</div>
							</div>-->

							<!--三条数据-->
							<!--<div class="wholePublic-right-item clearfix">
								<div class="fl wholePublic-right-img">
									<img src="images/prodectHeader.png" class="img1" />
									<img src="images/hot.png" class="hot-img img-responsive" />
								</div>
								<div class="fr wholePublic-right-txt">
									<div class="wholePublic-title">企雷达科技股份有限公司</div>
									<div class="item-txt-content hide-2">企雷达科技有限公司是依附于橙美文化传播有限公司旗下的一个研发公司专业主营征服者先知征服眼汽车电子狗主营征服者先知征服眼汽车电子狗</div>
								</div>
							</div>-->
						</div>

					</div>
					<div id="pageToolBox">
						<div id="pageTool"></div>
					</div>
					<!--企业舆情结束-->
				</div>
			</div>
		</div>
	</body>

</html>
<script>
	var total;
	var pages=1;
	Resize = function() {
		var doc = document.documentElement;
		relHeight = (doc.clientHeight > doc.scrollHeight) ? doc.clientHeight : doc.scrollHeight; //获取屏幕高度和当前页面高度中的较大值  
		document.getElementById('col1').style.height = relHeight - 82 + 'px'; //id为bg的div就是我页面中的遮罩层
	}
	Resize();

	$(document).ready(function() {
		Resize();
		load();
	});
	//分页
	function load(){
		var data_1 = JSON.stringify({
			'com_name':"",
			'type': 3,
			'pageNum': pages,
			'pageSize': 10,
		});
		content(data_1);
	};
	
	//数据加载
	function content(data) {
		var ajaxTimeOut = $.ajax({
			type: "post",
			url: 'http://139.224.208.224:8080/qi-radar/cpSensation/getCompanySen',
			timeout : 10000, 
			dataType: 'json',
			contentType: "application/json ",
			data: data,
			asycn: false,
			success: function(data) {
				if(data.code == 0) {
					var total=data.total;
					console.log(data)
					var data = data.data;
					console.log(data)
					var list = '';
	
					var newTime_hot = [];
					var year_hot = [];
					var month_hot = [];
					var day_hot = [];
					var time_hot = [];
					var times_hot = [];
					
					var newTime_new = [];
					var year_new = [];
					var month_new = [];
					var day_new = [];
					var time_new = [];
					var times_new = [];
					for(var i = 0; i < data.length; i++) {
						
						var carProList='';
						$.each(data[i].pro_list,function(i,item){
								carProList += "<li>"+item.pro_name+"</li>";		                   	
						});

						list += "<div class=\"wholePublic-middle-item\">";
						list += "<a href=\"companyDetail.html\">";
						list += "<div class=\"clearfix wholePublic-content\">";
						list += "<div class=\"wholePublic-infro-left fl\">";
						list += "<img src=\"images/companyDetailLogo.png\" />";
						list += "</div>";
						list += "<div class=\"wholePublic-infro-right fl\">";
						list += "<div class=\"company-title\">" + data[i].name + "</div>";
						list += "<div class=\"product clearfix\">";
						list += "<ul class=\"fl\">";
						list += "<li>产品:</li>";
						list += carProList;
						list += "</ul>";
						list += "<div class=\"more fr\">更多</div>";
						list += "</div>";
						list += "<div class=\"clearfix company-txt\">";
						list += "<ul class=\"company-keyword fl\">";
						list += "<li>关键词:</li>";
//						list += "<li>" + data[i].keyword_list[0].keyword_name + "</li>";
//						list += "<li>" + data[i].keyword_list[1].keyword_name + "</li>";
//						list += "<li>" + data[i].keyword_list[2].keyword_name + "</li>";
//						
//						list += carNewsList;
						list += "</ul>";
						list += "<div class=\"fl company-article\"><span>相关文章：</span><span>" + data[i].aboArtNum + "</span></div>";
						list += "<div class=\"fr hot\">";
						list += "<!--<div class=\"fl header-hot-txt grcolor\">热度指数</div>-->";
						list += "<div class=\"hot-progress fl\">";
						list += "<div class=\"progress-val\" id=\"bar_width\">" + data[i].heatValue + "</div>";
						list += "<div class=\"progress-bar\">";
						list += "<span class=\"progress-in\" id=\"bar\"></span>";
						list += "</div>";
						list += "</div>";
						list += "</div>";
						list += "</div>";
						list += "<div class=\"hide-1\">" + data[i].introduce + "</div>";
						list += "</div>";
						list += "</div>";
						list += "</a>";
						list += "<div class=\"item\">";
						list += "<div class=\"clearfix forum-header\">";
						if(data[i].emotion==1){
							list += "<div class=\"fl positive\">正</div>";
						}else if(data[i].emotion==2){
							list += "<div class=\"fl negative\">负</div>";
						}else{
							list += "<div class=\"fl neutral\">中</div>";
						}
						list += "<p class=\"fl item-content2\">";
						//可省
						list += "<a href=\"#\"><span class=\"item-content2-title\">企雷达</span>产品正在试产试销中</a><span class=\"item-content2-source\">东方财富网</span>";
//						list += "<a href=\"#\">" + data[i].hottestArt.vrtitle + "</a>";
						list += "</p>";
//						list += "<div class=\"forum_time fr grcolor\">" + times_hot[i] + "</div>";
						list += "</div>";
						list += "<p class=\"hide-3\">国睿科技和四创电子是中国电子科技集团有限公司下面两家非常典型的军民融合上市公司，由于两者都是雷达领域“国家队”标的，常常被市场拿来进行比较。颇具14所的龙头风范与大哥的地位，资产注入预</p>";
						list += "</div>";
						list += "<div class=\"item\" >";
						list += "<div class=\"clearfix forum-header\">";
						list += "<div class=\"fl positive\">正</div>";
						list += "<p class=\"fl item-content2\">";
						//可省
						list += "<a href=\"#\"><span class=\"item-content2-title\">企雷达</span>产品正在试产试销中</a><span class=\"item-content2-source\">东方财富网</span>";
//						list += "<a href=\"#\">" + data[i].newwestArt.vrtitle + "</a>";
						list += "</p>";
//						list += "<div class=\"forum_time fr grcolor\">" + times_new[i] + "</div>";
						list += "</div>";
						list += "<p class=\"hide-3\">国睿科技和四创电子是中国电子科技集团有限公司下面两家非常典型的军民融合上市公司，由于两者都是雷达领域“国家队”标的，常常被市场拿来进行比较。颇具14所的龙头风范与大哥的地位，资产注入预</p>";
						list += "</div>";
						list += "<div class=\"wholePublic-bottomline\">";
						list += "</div>";
						list += "</div>";
					};
					$(".wholePublic-infro").html(list);
					$(".loading").hide();
					function paged() {
						$('#pageTool').empty();
						$('#pageTool').Paging({
							pagesize: 10,
							count: total,
							current:pages,
							callback: function(page, size, count) {
								var data = JSON.stringify({
									'com_name':"",
									'type': 3,
									'pageNum': page,
									'pageSize': 10,
								});
								pages=page;
								content(data);
							},
						})
					};
					paged();
					//判读数据是否过于十条
					if(total>10){
						$("#pageToolBox").show();
					};
					Resize();
				} else {
					alert(data.errMsg)
				};

			},
			complete : function(XMLHttpRequest,status){ 
		　　　　if(status=='timeout'){
		 　　　　　ajaxTimeOut.abort(); 
		　　　　　  alert("超时");
		　　　　}
		　　}
		});
	};
	
	window.onload = function() {
		Resize();
		window.onresize = function() {
			Resize()
		};
	};
</script>